<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3"><?php echo $this->partial('choix/menu.phtml') ?></div>
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                    <form class="form-horizontal" method="post" action="<?php echo $this->baseUrl('admin/admintrator/save') ?>">
                        <h3>Edition</h3>
                        <input type="hidden" name="num_vente" value="<?php echo $this->numVente ?>" />
                        <input type="hidden" name="id" value="<?php echo $this->object->getId() ?>" />
                        <div class="control-group">
                            <label class="control-label" for="nom">Nom : </label>
                            <div class="controls">
                                <input type="text" placeholder="Nom" value="<?php echo $this->object->getNom() ?>" name="user[nom]" id="nom" required />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="prenom">Prenom : </label>
                            <div class="controls">
                                <input type="text" placeholder="Prenom" value="<?php echo $this->object->getPrenom() ?>" name="user[prenom]" id="prenom" required="required" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="userid">UserID : </label>
                            <div class="controls">
                                <input type="text" placeholder="UserID" value="<?php echo $this->object->getUserid() ?>" name="user[userid]" id="userid" required="required" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="password">Mot de passe : </label>
                            <div class="controls">
                                <input type="text" placeholder="Password" value="" name="user[password]" id="password" />
                                <input type="hidden" value="<?php echo $this->object->getPassword() ?>" name="user[passwordORG]"  />
                                <p class="note"> Le mot de passe n'apparait pas car il est crypté. Vous pouvez cependant le remplacer ci-contre.</p>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="email">E-mail : </label>
                            <div class="controls">
                                <input type="text" placeholder="E-mail" value="<?php echo $this->object->getEmail() ?>" name="user[email]" id="email" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Limiter aux ventes : </label>
                            <div class="controls">
                                <?php if ($this->listVentes) : foreach ($this->listVentes as $vente) : ?>
                                <p>
                                    <input type="checkbox" name="user[limited][]" value="<?php echo $vente['p_ventes'] ?>" <?php if (in_array($vente['p_ventes'], $this->object->getLimited())) : ?>checked<?php endif ?> />
                                    <?php echo date('d/m/Y', strtotime($vente['dtvente'])) ?> - <?php echo $vente['titre'] ?>
                                </p>
                                <?php endforeach; endif ?>
                            </div>
                        </div>
                        <div align="center" style="width: 670px">
                            <ul class="inline">
                                <li style="display:block">
                                    <input class="btn btn-primary" type="submit" value="Sauver" name="submit" />
                                </li>
                            </ul>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>